﻿namespace TS2015.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;
    using System.Web.Script.Serialization;
    public class TbThiSinh_Truong
    {
        [Key]
        [Column(Order = 0)]
        [StringLength(10)]
        public string MaTS { get; set; }

         [Key]
        [Column(Order = 1)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int IDTruong { get; set; }

         [Key]
         [Column(Order = 2)]
         [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Required(ErrorMessage="Không được để trống!")]
         public int Lop { get; set; }

        [StringLength(50)]
        public string MoTa { get; set; }

        [ScriptIgnore]
        public  TbThiSinh TbThiSinh { get; set; }
        [ScriptIgnore]
        public  TbTruongTHPT TbTruongTHPT { get; set; }
    }
}